import {
  commonRequestApi,
  uploadApi,
  uploadFileApi,
  wxPostApi,
} from './request';

// 附近门店列表
export const nearbyStoreApi = (data: any) =>
  commonRequestApi('/wine-internet-community/store/nearby/list', data, 'POST');

export const uploadBase64ToAliApi = (file: any) =>
  uploadApi('/common-api/uploadBase64', file, 'POST');

//获取城市列表
export const getCityListApi = (data: any) =>
  commonRequestApi('/wine-internet-community/store/city/list', data, 'POST');

//经纬度转换
export const getConversionApi = (data: any) =>
  wxPostApi('/ws/geocoder/v1/', data);

// 上传文件
export const uploadUFileApi = (filePath: any, name: string, extra: any) =>
  uploadFileApi('/common-api/upload', filePath, name, extra, 'PUT', 'login');
